﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel.Composition;
using Core.Common;
using Core.Components;
using Core.Interfaces;
using Core.BusinessLogic.Interfaces;
using Core.DataAccess;
using SonCa.SocialNetwork.Web.Accounts.IPresenters;

namespace SonCa.SocialNetwork.Web.Accounts.Presenters
{
    public class FacebookPresenter
    {
        private IFacebook _view;

        [Import]
        private IAccountService _accountService;
        //[Import]
        //private IWebContext _webContext;
        //[Import]
        //private IEmail _email;
        //[Import]
        //private IRedirector _redirector;
        //[Import]
        //private IConfiguration _configuration;

        public void Init(IFacebook View)
        {
            _view = View;
            MEFManager.Compose(this);
        }

        public void LoginWithFacebookAccount(FacebookAccount fa)
        {
            _accountService.LoginWithFacebookAccount(fa);
        }
    }
}